package model

import "time"

// ArgID arg id.
type ArgID struct {
	ID int64 `form:"id" validate:"required,min=1,gte=1"`
}

// ArgIds ids arg.
type ArgIds struct {
	Ids []int64 `form:"ids,split" validate:"min=1,max=50"`
}

type ArgList struct {
	Pager
}

type AddComment struct {
	HubuserID         int64     `gorm:"hubuser_id" `
	ActID             int64     `gorm:"act_id" `
	Message           string    `form:"name"  validate:"required" gorm:"message" `
	Title             string    `form:"name"  gorm:"title" `
	Name              string    `form:"name" gorm:"name" `
	Username          string    `form:"name" gorm:"username" `
	Avatar            string    `form:"name" gorm:"avatar" `
	Approved          int8      `form:"name" gorm:"approved" `
	LivecommentPushed int8      `form:"name" gorm:"livecomment_pushed" `
	Top               int8      `form:"name" gorm:"top" `
	CreateAt          time.Time `form:"name" gorm:"create_at" `
}

type ArgQueryComment struct {
	HubuserId int64 `form:"hubuser_id"`
	ActId     int64 `form:"act_id"`
	Top       int8  `form:"top" default:"-1"`
}

type UpdateComment struct {
	Name    string `form:"name"  gorm:"column:name"`
	Message string `form:"message" gorm:"column:message"`
	Top     int8   `form:"top" default:"-1" gorm:"column:top"`
	ID      int64  `form:"id" validate:"required,min=1,gte=1"`
}
